/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.controller.bean;

import com.entities.EventLibrary;
import com.model.EventLibraryModel;
import java.sql.Date;
import java.util.ArrayList;
import java.util.List;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

/**
 *
 * @author NguyenVan
 */
@ManagedBean
@SessionScoped
public class GetEventLibrary {

    List<EventLibrary> list;
    EventLibraryModel emodel;
    
    public GetEventLibrary() {
        list = new ArrayList<EventLibrary>();
        emodel = new EventLibraryModel();
    }

    
    public List<EventLibrary> getList() {
        list = emodel.ListEventLibrary();
        return list;
    }

    public void setList(List<EventLibrary> list) {
        this.list = list;
    }
    
}
